package com.ffcs.crmd.tsp.admin.service;

import java.util.List;

import com.ctg.itrdc.platform.common.entity.PageInfo;
import com.ffcs.crmd.tsp.admin.entity.JobGroup;
import com.ffcs.crmd.tsp.common.exception.TspException;

public interface IJobGroupService{

    public void deleteJobGroup(JobGroup jobGroup) throws TspException;

    public void deleteJobGroup(List<JobGroup> jobGroupList) throws TspException;

    /**
     * 功能说明:
     * 
     * @param clusterName
     * @param id
     * @return
     * @throws TspException
     */
    JobGroup get(JobGroup jobGroup) throws TspException;

    public void pause(List<JobGroup> jobGroupList) throws TspException;

    /**
     * 功能说明:
     * 
     * @param clusterName
     * @param name
     * @return
     * @throws TspException
     */
    List<JobGroup> query(JobGroup jobGroup) throws TspException;

    /**
     * 功能说明:
     * 
     * @param clusterName
     * @param name
     * @param pageNumber
     * @param pageSize
     * @return
     * @throws TspException 
     */
    PageInfo<JobGroup> queryPage(JobGroup jobGroup, int pageNumber, int pageSize) throws TspException;

    
    public void resume(List<JobGroup> jobGroupList) throws TspException;

    public void saveJobGroup(JobGroup jobGroup) throws TspException;

    public void updateJobGroup(JobGroup jobGroup) throws TspException;

}
